﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace aspProject.Dmain.Domain
{
    public class LabelType
    {
        [Key()]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        public string Name { get; set; }
        public int Height { get; set; }
        public int Width { get; set; }

        public virtual ICollection<FieldConfig> FieldConfigs { get; set; }
        public virtual ICollection<DataConfig> DataConfigs { get; set; }
        public virtual ICollection<Theme> Themes { get; set; }
        public virtual ICollection<Template> Templates { get; set; }

        public void AddTheme(Theme theme)
        {
            Themes.Add(theme);
        }

        public void AddTemplate(Template template)
        {
            Templates.Add(template);
        }

        public void AddDataConfig(DataConfig dataConfig)
        {
            DataConfigs.Add(dataConfig);
        }

        public void AddFieldConfig(FieldConfig fieldConfig)
        {
            FieldConfigs.Add(fieldConfig);
        }




    }
}
